import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import index from '@/components/index'

import login from '@/components/login'

import register from '@/components/register'

import details from '@/components/details'

import hotel from '@/components/hotel'
import hotel_desc from '@/components/hotel/desc'
import ticket from '@/components/ticket'

import ticket_search from '@/components/ticket/search.vue'

import ticket_details from '@/components/ticket/details.vue'

import strategy from '@/components/strategy/index'

import scenic_search from '@/components/scenic/search'

import scenic from '@/components/scenic/index'
import user from '@/components/user'

const routes = [
  {
    path: '/',
    name: 'index',
    component: index
  },
  {
    path:'/login',
    name:'login',
    component:login
  },
  {
    path:'/register',
    name:'register',
    component:register
  },{
    path:'/details',
    name:'details',
    component:details
  },
  {
    path:'/hotel',
    name:'hotel',
    component:hotel
  },
  {
    path:'/hotel_desc',
    name:'hotel_desc',
    component:hotel_desc
  },
  {
    path:'/ticket',
    name:'ticket',
    component:ticket
  },
  {
    path:'/ticket_search',
    name:'车票搜索',
    component:ticket_search
  },
  {
    path:'/ticket_details',
    name:'车票详情',
    component:ticket_details
  },
  {
    path:'/strategy',
    name:'攻略搜素',
    component:strategy
  },
  {
    path:'/scenic_search',
    name:'景点搜索',
    component:scenic_search
  },
  {
    path:'/scenic',
    name:'景点详情',
    component:scenic
  },
  {
    path:'/user',
    name:'user',
    component:user
  }
]

const route = new Router({
  routes
})

export default route
